package com.zk.yygh.dict_client.service;

import com.zk.yygh.hosp.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 张凯
 * @date: 2022/6/6 - 20:41
 */
@FeignClient("service-dict")
@Repository
public interface DictFeignClient {
    /**
     * 路径要写全
     * @param dictCode 编码
     * @param value    值
     * @return 相关名字
     */
    @GetMapping("/admin/dict/getName/{dictCode}/{value}")
    String getNameByDictCodeAndValue(@PathVariable("dictCode") String dictCode, @PathVariable("value") Integer value);



    @GetMapping("/admin/dict/getName/{value}")
    String getNameByDictCodeAndValue(@PathVariable("value") Integer value);

    @GetMapping("/admin/dict/getProCity/{dictType}")
    public Result getProCityName(@PathVariable("dictType") String dictType);
}
